package netfone;
import java.io.File;
/**
 *
 * @author ffr ( Fabiano Franz )
 */
public class Constants {
    
    static public final String USER_DIR;

    static public final String OS_NAME;
    static public final boolean OS_IS_MAC_OS_X;
    static public final boolean OS_IS_LINUX;
    static public final boolean OS_IS_WINDOWS;
    
    static{
        OS_NAME = System.getProperty("os.name");
        OS_IS_MAC_OS_X = "Mac OS X".equalsIgnoreCase(OS_NAME);
        OS_IS_LINUX = "Linux".equalsIgnoreCase(OS_NAME);
        OS_IS_WINDOWS = OS_NAME.toLowerCase().startsWith("windows");
        String userHome = System.getProperty("user.home") == null ? System.getProperty("user.dir") : System.getProperty("user.home");
        USER_DIR = (userHome == null ? "" : userHome + (OS_IS_MAC_OS_X ? File.separator + "Library" + File.separator + "Application Support" : "") + File.separator);

        
        
    }
    

    
    
}